<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<script src="albertAjax.js"></script>
<script>
	window.onload=function(){
		var oBtn = document.getElementById('btn1');
		
		oBtn.onclick = function()
		{
			ajax('a.txt',(function(str)){ alert(str);})
			//ajax('a.txt',(str)=>{ alert(str);})
			
		};
		
	};
	
</script>
</head>

<body>
<input type="button" id="btn1" value="read">
</body>
</html>
